<?php 
  require_once("../../includes/config.php"); 
  
  dump($_GET);
  if(isset($_GET['id']))
  {
    $conracts = query('SELECT service_vouchers.*,contracts.contract_id As contract__id,contracts.contract_status 
      FROM service_vouchers LEFT JOIN contracts ON service_vouchers.contract_id = contracts.contract_id 
      WHERE service_vouchers.payment_id= ?',$_GET['id']);
    $payment = $conracts[0];
    
    renderWithoutHeader("service_vouchers/edit.php", array("payment"=>$payment,"payment_method"=>$payment_method));
    
  }  

?>